package com.letoken.platform.app.async;



import com.letoken.platform.repo.app.manager.AppUserLoginLogManager;
import com.letoken.platform.repo.app.po.AppUserSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * 异步处理用户登录日志
 *
 * @version 1.0
 * @author： txx
 * @date： 2021-04-14 15:06
 */
@Component
public class AppUserLoginLogAsync {

    @Autowired
    private AppUserLoginLogManager appUserLoginLogManager;

    @Async
    public void insertAppUserLoginLog(AppUserSession appUserSession) {
        appUserLoginLogManager.insertAppUserLoginLog(appUserSession);
    }
}
